package org.example.tree.queue;

import org.example.tree.entity.MyQueue;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zjt
 * @description
 * @date 2024/2/2 09:58
 */
public class QueueTest {

    public static void main(String[] args) {
        MyQueue q = new MyQueue();
        q.enQueue(5);
        q.enQueue(3);
        if (!q.isEmpty()) {
            System.out.println(q.front());
        }
        q.deQueue();
        if (!q.isEmpty()) {
            System.out.println(q.front());
        }
        q.deQueue();
        if (!q.isEmpty()) {
            System.out.println(q.front());
        }
        System.out.println(11);
    }
}
